package com.yunji.web.order;

import com.yunji.common.base.BaseController;
import com.yunji.order.business.AlipayBusiness;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.web.order
 * @Title: AliPayController
 * @Description: 支付宝
 * <p>
 * History:
 * Date						Version			Author			Summary
 * ========================================================================
 * 2024-04-22 14:15:39		V1.0			HuaAo		新建类
 */
@Api(tags = "三方回调-支付宝回调")
@RestController
@RequestMapping("/gateway/alipay")
public class AliPayController extends BaseController {
    @Resource
    private AlipayBusiness business;

    @ApiOperation("用户转账支付宝回调")
    @PostMapping("/payout/callback")
    public String payout() {
        return business.payout();
    }
}